package com.wxboot.game.eliminate.config;

import com.wxboot.game.eliminate.base.JellyContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.annotation.RequestScope;

@Configuration
public class JellyConfig {

    /**
     * 每次请求生成request相应的JellyContext，直接在Controller方法参数中注入即可
     */
    @Bean
    @RequestScope
    public JellyContext getJellyContext() {
        return new JellyContext();
    }

}
